<?php
	//defined('ALLOW') or die('Lỗi kết nối!');
	define("INC", 'includes/');
	switch($cont)
	{
		// Quản lý phiên
		case "dangnhap":			include INC.'dangnhap.php';							break;
        case "dangnhap_submit":		include INC.'dangnhap_submit.php';					break;
        case "dangxuat":			include INC.'dangxuat.php';							break;
		
		// Đăng ký
		case "dangky":				include INC.'dangky.php';							break;
		case "dangky_thongbao":		include INC.'dangky_thongbao.php';					break;
        
        //Đổi thông tin
        case "taikhoancuatoi":	include INC.'thongtintaikhoan.php';				break;
        case "thongtintaikhoan_thongbao":	include INC.'thongtintaikhoan_thongbao.php';				break;
                	
		// Đổi mật khẩu
		case "doimatkhau":			include INC.'doimatkhau.php';						break;
		case "doimatkhau_submit":		include 'doimatkhau_submit.php';				break;
		
		// Sản phẩm
		case "sanpham":		        include INC.'sanpham.php';      					break;
        case "loaisanpham":		        include INC.'loaisanpham.php';      					break;
		case "sanpham_moi":		include INC.'sanpham_moi.php';      			break;
        case "sanpham_khuyenmai":		include INC.'sanpham_khuyenmai.php';      			break;
        case "chitiet_sanpham":		include INC.'sanpham_chitiet.php';      			break;
		case "ketqua_timkiem":	    include("ketqua_timkiem.php");			      	break;
        case "chitiet":	            include("chitiet.php");         				break;
		
		// Giỏ hàng
		case "dathang":				include("dathang.php");							break;
		case "giohang":				include("giohang.php");							break;
		case "xoagiohang":			include("xoagiohang.php");						break;
		case "thanhtoan":			include("thanhtoan.php");						break;
		case "thanhtoan_submit":	include("thanhtoan_submit.php");				break;
        case "ketqua_thanhtoan":	include("ketqua_thanhtoan.php");				break;
        
        //Thống kê
        case "sanpham_moinhat":	    include("sanpham_moinhat.php");				break;
        case "sanpham_khuyenmai":	    include("sanpham_khuyenmai.php");			break;
        case "sanpham_banchaynhat":	    include("sanpham_banchaynhat.php");			break;
        
        //Bài viết
        case "baiviet":	include("baiviet.php");				break;
        
        //Bình chọn
        case "binhchon_submit":	    include("binhchon_submit.php"); 				break;
        case "ketqua_binhchon":	    include("ketqua_binhchon.php"); 				break;
        
        //Liên hệ
		case "lienhe":	    include("lienhe.php"); 				break;
        case "lienhe_submit":	    include("lienhe_submit.php"); 				break;
                
		// Mặc định
		default:			include INC."trangchu.php"; 				break;
	}
?>  